﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Clauses
{
    public class TriggerName
        : Expression
    {
        public TriggerName(string name)
            : base(name)
        {
            //if (name.Contains("."))
            //{
            //    var tokens = name.Split('.');
            //    if (tokens.Length == 2)
            //        AddChild(new DatabaseName(tokens[0]));
            //}
        }

        //public TriggerName(string name, IExpression databaseName)
        //    : base(name, Constants.Expressions.TriggerName, databaseName)
        //{
        //}

        //private static string GetTriggerName(string name)
        //{
        //    if (name.Contains("."))
        //    {
        //        var tokens = name.Split('.');
        //        return tokens[tokens.Length - 1];
        //    }
        //    else return name;
        //}
    }
}
